import { type IBannersUrl } from '@/components/juejinBanner.vue'
import { getRandomInt } from '@/utils/getRandomInt'

export function getBannersImgUrl() {
  return new Promise<IBannersUrl[]>(resolve => {
    setTimeout(
      () => {
        resolve([
          {
            imgUrl: 'xykf.avis',
            aUrl: 'https://live.marscode.cn/7116/campus?ch=juejin',
            imgShow: true,
          },
          {
            imgUrl: 'aizj.avis',
            aUrl: 'https://juejin.cn/problemset?utm_source=practice&utm_medium=cbl',
            imgShow: true,
          },
          {
            imgUrl: 'aist.avis',
            aUrl: 'https://juejin.cn/user/center/signin?avatar_menu&utm_source=practice&utm_medium=dailynewtask&utm_campaign=weblan',
            imgShow: true,
          },
        ])
      },
      getRandomInt(1, 2000),
    )
  })
}
